import asyncio
import os
import sys

sys.path.append(os.path.join(os.path.dirname(__file__), "/root/work/arcfox-crawler"))
from com.arcfox.school.spider.yzy.yzy_province_score_spider import YZYProvinceScoreSpider
from com.arcfox.util.util import add_log


class YZYProvinceScoreService:
    def __init__(self):
        self.province_score_spider = YZYProvinceScoreSpider()
        add_log(self.__class__.__name__ + ".log")

    async def start(self):
        await self.province_score_spider.start_crawl()


if __name__ == "__main__":
    asyncio.run(YZYProvinceScoreService().start())
